package apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {
    @PostMapping("/api/v1/user/auth")
    public ResponseResult WeUserKeep(@RequestBody ApUser apUser);

    @PostMapping("/api/v1/user")
    public ResponseResult getWmUserById(@RequestBody Integer authorId);

    @GetMapping("/api/v1/sensitive")
    public ResponseResult isSensitivePass(@RequestParam String content);

}
